package com.aishua.fire.mapper;

import java.util.List;
import org.springframework.stereotype.Component;
import com.aishua.fire.jpa.entity.Permteam;
import com.aishua.fire.mapper.dto.PermPermteamDto;
import com.aishua.fire.mapper.dto.PermteamDto;

@Component
public interface PermteamMapper {
	//查询id,name集合
	List<Permteam> findIdAndPermteamName();
	
	List<PermPermteamDto> getPermListByPermteamId(long permteamId);
	
	/**
	 * 新增权限组信息
	 */
	void addPermteamInfo(PermteamDto permteamDto);
	/**
	 * 更新权限组信息
	 */
	void updatePermteamInfo(PermteamDto permteamDto);
	/**
	 * 删除对应权限组信息
	 * @param permTeamId
	 */
	void deletePermteamInfo(PermteamDto permteamDto);
	
	//过滤后的id和name
	List<Permteam> findIdAndNameGuoLv(String accountteamId);
}
